/*------------------------------------------------------------------------------
* GeoVISTA Center, Penn State Geography Deptartment*
* Copyright (c), 2002, GeoVISTA Center
* All Rights Researved.
*
* Original Authors: Bonan Li
* $Author: bonan_li $
*
* $Date: 2004/03/03 19:03:11 $
*
* $Id: LayerInterface.java,v 1.4 2004/03/03 19:03:11 bonan_li Exp $
*
* To Do:
*
 ------------------------------------------------------------------------------*/


package edu.psu.geovista.app.map;


import edu.psu.geovista.symbollibrary.SymbolInterface;

import java.awt.*;


public interface LayerInterface {

  public void renderObservation(int obs, Graphics2D g2);
  public void renderObservationNoIndication(int obs, Graphics2D g2);
  public void render(Graphics2D g2);

  public void setSymbols(SymbolInterface[] symbols);

  /*
   * SelectionX1 is expected to be less than selectionX2, same with Y1 and y2.
   * Selected observations should be rendered with the color "colorSelection".
   */
  public void findSelection(int selectionX1, int selectionX2, int selectionY1,
                            int selectionY2) ;

  /*
   * selectionX1 is expected to be less than selectionX2, same with Y1 and y2
   */
  public void findSelectionShift(int selectionX1, int selectionX2,
                                 int selectionY1,
                                 int selectionY2);
  public int findIndication(int x, int y);
}